-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add hamburger animation #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/page/HomePage/HomePage.js
Outdated
|
||
Animated.timing(this.state.animationTranslateX, { | ||
toValue: animationFinalValue, | ||
duration: 250, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add timing functions here? Like easing, etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are the docs (https://reactnative.dev/docs/animated#configuring-animations), I am happy to tweak to use any animation type!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But yes, it does look like there is easing: https://reactnative.dev/docs/easing
Pushed a couple style tweaks, merge is all you @tgolen |
Co-authored-by: Tim Golen <[email protected]>
Fixed those comments up |
Fixes #143
Fixes bullet point one of #152